
<%@ page import="com.macrosolution.exdebito.Customer" %>
<!DOCTYPE html>
<html>

<head>
	<meta name="layout" content="kickstart" />
	<g:set var="entityName" value="${message(code: 'customer.label', default: 'Customer')}" />
	<title><g:message code="default.show.label" args="[entityName]" /></title>
</head>

<body>

<section id="show-customer" class="first">

	<table class="table">
		<tbody>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.age.label" default="Age" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: customerInstance, field: "age")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.abode.label" default="Abode" /></td>
				
				<td valign="top" class="value"><g:link controller="address" action="show" id="${customerInstance?.abode?.id}">${customerInstance?.abode?.encodeAsHTML()}</g:link></td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.born.label" default="Born" /></td>
				
				<td valign="top" class="value"><g:formatDate date="${customerInstance?.born}" /></td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.bornDistrict.label" default="Born District" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: customerInstance, field: "bornDistrict")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.bornMunicipality.label" default="Born Municipality" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: customerInstance, field: "bornMunicipality")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.cf_piva.label" default="Cfpiva" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: customerInstance, field: "cf_piva")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.citizen.label" default="Citizen" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: customerInstance, field: "citizen")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.dateCreated.label" default="Date Created" /></td>
				
				<td valign="top" class="value"><g:formatDate date="${customerInstance?.dateCreated}" /></td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.emails.label" default="Emails" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: customerInstance, field: "emails")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.inItalyBy.label" default="In Italy By" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: customerInstance, field: "inItalyBy")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.lastUpdated.label" default="Last Updated" /></td>
				
				<td valign="top" class="value"><g:formatDate date="${customerInstance?.lastUpdated}" /></td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.name.label" default="Name" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: customerInstance, field: "name")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.nationality.label" default="Nationality" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: customerInstance, field: "nationality")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.phones.label" default="Phones" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: customerInstance, field: "phones")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.residence.label" default="Residence" /></td>
				
				<td valign="top" class="value"><g:link controller="address" action="show" id="${customerInstance?.residence?.id}">${customerInstance?.residence?.encodeAsHTML()}</g:link></td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.sex.label" default="Sex" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: customerInstance, field: "sex")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="customer.surname.label" default="Surname" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: customerInstance, field: "surname")}</td>
				
			</tr>
		
		</tbody>
	</table>
</section>

</body>

</html>
